package com.arvin.service.serviceImpl;

import com.arvin.service.EmailService;
import com.arvin.pojo.EmailProperties;
import com.arvin.utils.MailUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmailServiceImpl implements EmailService {
    @Autowired
    private EmailProperties emailProperties;
    @Override
    public boolean send(String to, String title, String content) {
        boolean flag = MailUtil.sendMail(emailProperties,to,title,content);
        return flag;
    }
}
